package com.java110.intf.shop;

import com.java110.intf.FeignConfiguration;
import com.java110.dto.shop.ShopVisitDto;
import com.java110.po.shop.ShopVisitPo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @ClassName IShopVisitInnerServiceSMO
 * @Description 商铺访问接口类
 * @Author wuxw
 * @Date 2019/4/24 9:04
 * @Version 1.0
 * add by wuxw 2019/4/24
 **/
@FeignClient(name = "mall-shop", configuration = {FeignConfiguration.class})
@RequestMapping("/shopVisitApi")
public interface IShopVisitInnerServiceSMO {


    @RequestMapping(value = "/saveShopVisit", method = RequestMethod.POST)
    public int saveShopVisit(@RequestBody ShopVisitPo shopVisitPo);

    @RequestMapping(value = "/updateShopVisit", method = RequestMethod.POST)
    public int updateShopVisit(@RequestBody  ShopVisitPo shopVisitPo);

    @RequestMapping(value = "/deleteShopVisit", method = RequestMethod.POST)
    public int deleteShopVisit(@RequestBody  ShopVisitPo shopVisitPo);

    /**
     * <p>查询小区楼信息</p>
     *
     *
     * @param shopVisitDto 数据对象分享
     * @return ShopVisitDto 对象数据
     */
    @RequestMapping(value = "/queryShopVisits", method = RequestMethod.POST)
    List<ShopVisitDto> queryShopVisits(@RequestBody ShopVisitDto shopVisitDto);

    /**
     * 查询<p>小区楼</p>总记录数
     *
     * @param shopVisitDto 数据对象分享
     * @return 小区下的小区楼记录数
     */
    @RequestMapping(value = "/queryShopVisitsCount", method = RequestMethod.POST)
    int queryShopVisitsCount(@RequestBody ShopVisitDto shopVisitDto);
}
